package com.xrc;

public class Exercise06 {
    public static void main(String[] args) {

        int length = 10;
        int height = 6;
        for (int i=0;i<height;i++) {
            for (int j=0;j<length;j++) {
                if ( i == 0 ) {
                    System.out.print("*");
                }
                else if (i == height-1) {
                    System.out.print("*");
                }
                else if (j == 0 || j == length-1) {
                    System.out.print("*");
                }
                else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }



    }
}
